import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
from selenium.webdriver.support.select import Select
testCase="DBshop007_后台销售管理--订单发货流程"

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,'销售管理','发货单')
ordernumber=firefox.find_element_by_xpath('//table/tbody/tr[1]/td[3]').text
firefox.find_elements_by_link_text('查看')[0].click()

# try:
#     firefox.find_element_by_xpath('//span[@class="text-success"]').is_displayed('已发货'or'未发货')
#     writeLog("%s 测试通过"%testCase)
#     print("%s 测试通过"%testCase)
# except:
#     writeLog("%s 测试失败" % testCase)
#     getPhoto(firefox)
#     print("%s 测试失败" % testCase)

# time.sleep(2)
# firefox.quit()